import { postRequest, getRequest } from '/@/lib/axios';

export const inventordApi = {
  queryPage: (param) => {
    return postRequest('/inventord/queryPage', param);
  },

  queryPageInOut: (param) => {
    return postRequest('/inventord/queryPageInOut', param);
  },

  add: (param) => {
    return postRequest('/inventord/add', param);
  },

  update: (param) => {
    return postRequest('/inventord/update', param);
  },

  delete: (id) => {
    return getRequest(`/inventord/delete/${id}`);
  },

  batchDelete: (idList) => {
    return postRequest('/inventord/batchDelete', idList);
  },
};
